// import Test from './components/redux中reducer的hooks终极写法/Test'
// import Test from './components/react-router的路由懒加载/Test'
import Test from './components/react-router-config中的路由懒加载/Test'


import { BrowserRouter, HashRouter } from 'react-router-dom'
import { useState } from 'react'
function App() {
  const [refresf, setrefresf] = useState(true)
  return (
    <>
      <button onClick={() => setrefresf(!refresf)}>点击{refresf ? '卸载' : '安装'}Test组件</button>
      <hr />
      <BrowserRouter>{refresf && <Test></Test>}</BrowserRouter>
    </>
  )
}

export default App
